package com.example.platine.model;

import java.io.Serializable;

public class User implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id ;
	private String mail ;
	private String sonnerie ;
	private int repeter ;
	private String action ;
	
	public User()  {
		super();
	}

	public User(int id, String mail, String sonnerie, int repeter, String action) {
		super();
		this.id = id;
		this.mail = mail;
		this.sonnerie = sonnerie;
		this.repeter = repeter;
		this.action = action;
	}
	
	public User(String mail, String sonnerie, int repeter, String action) {
		super();
		this.mail = mail;
		this.sonnerie = sonnerie;
		this.repeter = repeter;
		this.action = action;
	}
	
	public User(int id, String mail, String action) {
		super();
		this.id = id;
		this.mail = mail;
		this.sonnerie = null;
		this.repeter = -1;
		this.action = action;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getSonnerie() {
		return sonnerie;
	}

	public void setSonnerie(String sonnerie) {
		this.sonnerie = sonnerie;
	}

	public int getRepeter() {
		return repeter;
	}

	public void setRepeter(int repeter) {
		this.repeter = repeter;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", mail=" + mail + ", sonnerie=" + sonnerie
				+ ", repeter=" + repeter + ", action=" + action + "]";
	}
	
}
